<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{margin: 0;padding: 0}
        .nav{
            background: #eee;
            height: 50px;
        }
        .nav-wrap{
            position: relative;
            height: 50px;
            width: 1000px;
            margin-left: auto;
            margin-right: auto;
            text-align: center;
            line-height: 50px;
        }
        .left,.right{
            position: absolute;
            height: 50px;
            top: 0;
            font-size: 12px;
            display: inline-flex;
            /*align-items设置子元素垂直对齐方式*/
            align-items: center;
        }
        .left{
            left: 0;
        }
        .right{
            right: 0;
        }
        .img{
            width: 19px;
            height: 19px;
        }
        .center a{
            font-size: 16px;
            text-decoration: none;
            color:black;
            margin-left: 50px;
        }
    </style>
</head>
<body>
    <div class="nav">
        <div class="nav-wrap">
            <div class="left">
                <img src="images/location.png">
                <span>武汉</span>
                <span>&lt切换&gt</span>
            </div>
            <div class="center">
                <a href="#">首页</a>
                <a href="#">资讯</a>
                <a href="#">测评</a>
                <a href="#">商城</a>
            </div>
            <div class="right">
                <img src="images/adm.png">
                <span>个人中心</span>
            </div>
        </div>
    </div>
</body>
</html>